<?php

class TemasController extends Controller
{

    public function actionIndex() {
        $dataProvider = new CActiveDataProvider('Tema', array(
            'criteria' => array(
                'with' => array(
                    'aluno' => array('joinType' => 'LEFT JOIN')
                ),
                'order' => 'aluno_id DESC'
            )
        ));
        $this->render('index', array(
            'dataProvider' => $dataProvider,
        ));
    }
	
    public function actionView($id) {
        $model = Usuario::model()->findByPk($id);
        if ($model === null)
            throw new CHttpException(404, 'The requested page does not exist.');
        $this->render('ver', array('model' => $model));
    }
}
